﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo3
{
    class Program
    {
        static void Main(string[] args)
        {
            //## 练习
            //1.定义一个图书馆里系统里面的用户类；
            //2.在用户类中定义一个方法输出当前用户对象的信息；然后在主方法调用输出；
            Users user = new Users();
            Pubs pub = new Pubs();
            Books book = new Books();
            //用户类
            user.UsersLogin = "123a123";
            user.UsersPassword = "22345678";
            user.UsersName = "玛瑞亚";
            user.UsersSex = '女';
            user.UsersHobby = "rap";
            user.UsersMoney = 10000.98;
            user.Usersadd = "福建省龙岩市";
            user.Library();
            Console.WriteLine();
            //出版社类
            pub.Pubname = "童年";
            pub.PubwriterPhone =17849867859;
            pub.Pubwriter = "高尔基";
            pub.Pubindouce = "童年出版社基于一定受众创建起来，现正在发展，敬请期待~";
            pub.Pubadd = "浙江省苏州市";
            pub.Pubxx();
            Console.WriteLine();
            //图书类
            book.BookID = "a1";
            book.Bookname = "穿越世界之花";
            book.BookWriter = "Mr.Chen";
            book.BookLB = "架空类";
            book.BookMoney = 49 ;
            book.Bookxx();
            Console.WriteLine();
        }
    }
}
